Xbasic
*WORDI Function
Syntax
Result_Flag as L = *WORDI(C text,C word)
Arguments
- Result_Flag
TRUE (.T.) if the word was found; otherwise FALSE (.F.).
- text
The character string to examine.
- word
The word to find within Search_In_String.
Description
Find a case insensitive word (word of words) in text - if found, return true, else return false.
Discussion
The *WORDI() function scans the character Search_In_String and returns TRUE if the Find_String can be found in it. A word is any sequence of characters separated on either end by spaces, punctuation marks, or the beginning or end of the field. Case insensitive.
Example
? *wordi("this is a sentence", "is") = .T.
See Also